The transaction attribute specifies how the Container must manage transactions for a method when a client invokes the method via the enterprise bean’s home or component interface or when the method is invoked as the result of the arrival of a JMS message. (Sun’s EJB Specification) Below is a list of transactional attributes:
1. NotSupported – transaction context is unspecified.
2. Required – bean’s method invocation is made within a transactional context. If a client is not associated with a transaction, a new transaction is invoked automatically.
3. Supports – if a transactional context exists, a Container acts like the transaction attribute is Required, else – like NotSupported.
4. RequiresNew – a method is invoked in a new transaction context.
5. Mandatory – if a transactional context exists, a Container acts like the transaction attribute is Required, else it throws a javax.ejb.TransactionRequiredException.
6. Never – a method executes only if no transaction context is specified.
Posted Date:- 2021-09-04 07:05:11
What Does A Well-written Oo Program Look Like?
What's The Difference Between An Interface And An Abstract Class?
Difference Between ejbStore() and ejbLoad()?
Is threading is possible in EJB?
What are the issues you face with EJB 3.0 ?
Is Decorator An Ejb Design Pattern?
Why Does Ejb Needs Two Interfaces(home And Remote Interface)
What is the difference between EJB and J2EE?
Why should we use EJB over Spring?
What is a home interface in EJB?
Which EJB protocol is used for communication?
Why don’t we use static in Java EE EJB?
How is consistency maintained by Stateful Session through transaction updates ?
Which is more beneficial: CMP or BMP?
What Is Deployment Descriptor?
Static variables in EJB should not be relied upon as they may break in clusters.Why?
Enlist the changes in EJB 2.1 ?
What Is The Difference Between Ear, Jar And War File?
Differentiate ‘stateful Session’ From ‘entity Bean’?
Which Is More Beneficial: Cmp Or Bmp?
Can I develop an Entity Bean without implementing the create() method in the home interface?
What are transaction attributes?
What is meant by POJO class in Java?
What is advantage of putting business logic in EJB over stored procedure?
What was shortcomings of EJB 2.0 ?
Can we run EJB in web server like Tomcat ?
Enlist the Declarative Transaction types?
Describe The Life Cycle For Stateful Beans.
Enlist the Enterprise Beans types?
What is software architecture of EJB?
What is meant by EJB container?
How many types of session beans are available in EJB?
What are session beans in EJB?